# -*- Mode: mutt -*-


# caches
set certificate_file="~/.mutt/.cache/certificates"
set header_cache="~/.mutt/.cache/headercache"
set message_cachedir="~/.mutt/.cache/messagecache"


# viewing
auto_view text/html


# misc
set mailcap_path=~/.mutt/mailcap
set abort_nosubject = ask-yes
set abort_unmodified = yes
set delete = ask-yes
set content_type = "text/plain"


# sorting
set sort=threads
set sort_browser=date
set sort_aux=reverse-last-date-received


# crypto
set crypt_replyencrypt = yes
set crypt_replysign = yes
set crypt_replysignencrypted = yes


# maildir
set folder = "~/.mail/{MY_MAILBOX}"
set mbox_type = Maildir
set spoolfile = +Inbox
set record = +Sent
set postponed = +Drafts


# smtp
set realname = "MY_MAILBOX_REALNAME"
set from = "MY_MAILBOX_ADDRESS"
# OPTIONAL: For some mail force tls
# set ssl_force_tls = yes
set ssl_starttls=yes
# EXAMPLE: `pass my/path/to/secret`
set smtp_pass = `{MY_MAILBOX_PASS_SECRETS_CMD_PATH}`
# EXAMPLE: "smtp://username@smtp.example.com:456"
#       or "smtps://username@smtp.example.com"
set smtp_url = "{MY_MAILBOX_PASS_SMTP_URL}"


# sidebar
mailboxes `find $HOME/.mail/{MY_MAILBOX} -mindepth 1 -not \( -name 'tmp' -o -name 'new' -o -name 'cur' \) -type d -printf "+'%P' "`
set sidebar_divider_char = '│'
set sidebar_delim_chars = "/"
set sidebar_short_path
set sidebar_folder_indent
set sidebar_visible = yes
set sidebar_width = 24
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
bind index,pager \Cj sidebar-prev
bind index,pager \Ck sidebar-next
bind index,pager \Co sidebar-open
bind index,pager B sidebar-toggle-visible
color sidebar_highlight brightwhite magenta
